<template>
  <div class="main">
    <Goback :title="title"></Goback>
    <ul class="edit">
      <li>
        <p>树叶李</p>
        <span
          class="fa fa-pencil"
          style="margin: 0 50px; margin-top: -16px"
        ></span>
      </li>
      <li>
        <!-- <p></p> -->
        <span>
          质胜于华 &nbsp;&nbsp;&nbsp;&nbsp;而行胜于言于高山之<br />巅
          &nbsp;&nbsp;方见大河奔涌于群峰之上&nbsp;&nbsp;&nbsp;更<br />绝长风浩荡当我在追光&nbsp;&nbsp;
          我与光<br />同行</span
        >
      </li>
      <li class="photo-m">
        <img src="" alt="" />
      </li>
    </ul>
    <div class="sex">
      <p>性别</p>
      <div>女</div>
      <span>男</span>
      <a>＞</a>
    </div>
    <div @click="changePage" class="city">
      <p>所在城市</p>
      <span>＞</span>
    </div>
    <div class="mainer">
      <van-area v-show="show" :area-list="areaList" />
      <button v-show="flag" @click="cancel">确认</button>
    </div>
    <div @click="change" class="super">
      <p>出生年月日</p>
      <span>＞</span>
    </div>
    <div class="content">
      <van-area v-show="show" :area-list="areaList" />
      <!-- <button class="mini" v-show="flag" @click="yes">确认</button> -->
    </div>
    <div class="building">
      <p>身高</p>
      <input placeholder="165" type="text" />
    </div>
    <div class="monkey">
      <p>教育状况</p>
      <span>已毕业</span>
      <span class="last">在读</span>
    </div>
    <div class="school">
      <p>最高学历</p>
      <span>＞</span>
    </div>
  </div>
</template>

<script>
import { areaList } from "@vant/area-data";

import Goback from "@/components/index/Goback";
export default {
  data() {
    return { areaList, title: "", flag: false, show: false, button: false };
  },
  mounted() {
    this.title = this.$route.meta.title;
    return { areaList, flag: false, show: false, button: false, title: "" };
  },
  mounted() {
    this.title = this.$route.meta.title;
    // return { areaList, flag: false, show: false, button: false, title: "" };
  },

  components: {
    Goback,
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    changePage() {
      this.flag = true;
      this.show = true;
    },
    change() {
      this.flag = true;
      this.show = true;
    },
    cancel() {
      this.show = false;
      this.flag = false;
    },
    yes() {
      this.show = false;
      this.flag = false;
    },
  },
};
</script>

<style scoped>
/* .main .van-nav-bar__left .van-nav-bar__text {
  font-size: 31px;
  color: black;
  margin-left: 15px;
  margin-top: 2px;
}
.van-icon:before {
  color: black;
  font-size: 32px;
  margin-top: 3px;
} */
.main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* max-width: 100%;
  overflow-x: hidden; */
}

.edit {
  width: 100%;
  height: 100%;
}

.main {
  flex: fixed;
  height: 2000px;
  background: #faf8f6;
}
.edit {
  width: 90%;
  height: 210px;
  display: flex;
  flex-direction: column;
  margin: 140px 50px;
  background: #fff;
  border-radius: 20px;
}
.edit li {
  display: flex;
  flex-direction: column;
  margin: 9px 70px;
}
.edit li p {
  font-size: 27px;
}
.edit li span {
  font-size: 25px;
  color: grey;
  height: 35px;
  line-height: 35px;
}

.edit img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: grey;
}
.edit .photo-m img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 20px 400px;
  margin-top: -90px;
}
.main .sex {
  width: 90%;
  height: 100px;
  margin: 0 40px;
  border-radius: 20px;
  background: #fff;
}

.sex p {
  width: 80px;
  height: 85px;
  line-height: 85px;
  margin: 0px 110px;
  font-size: 32px;
  color: grey;
  margin-bottom: -35px;
}
.sex div {
  width: 120px;
  height: 70px;
  line-height: 70px;
  border-radius: 20px;
  background: #ffcf35;
  margin: 0 350px;
  text-align: center;
  margin-top: -80px;
}
.sex span {
  display: block;
  width: 120px;
  border-radius: 20px;
  height: 70px;
  line-height: 70px;
  background: #cccccc;
  margin: 0 500px;
  margin-top: -71px;
  text-align: center;
}
.sex a {
  display: block;
  width: 120px;
  height: 70px;
  line-height: 70px;
  margin: 0 610px;
  margin-top: -70px;
  text-align: center;
  font-size: 46px;
}
.city {
  margin: 110px 0;
  width: 90%;
  height: 100px;
  line-height: 100px;
  margin: 0 40px;
  border-radius: 20px;
  background: #fff;
}
.city p {
  margin: 80px 113px;
  font-size: 26px;
  color: grey;
}
.city span {
  font-size: 40px;
  display: block;
  margin: 0 648px;
  margin-top: -180px;
}
.super {
  margin: 110px 0;
  width: 90%;
  height: 100px;
  line-height: 100px;
  border-radius: 20px;
  margin: 0 40px;
  background: #fff;
}
.super p {
  margin: 80px 113px;
  font-size: 26px;
  color: grey;
}
.super span {
  font-size: 40px;
  display: block;
  margin: 0 648px;
  margin-top: -180px;
}
.van-picker__cancel {
  display: none;
}
.van-picker__confirm {
  display: none;
}
.mainer {
  position: relative;
}
.mainer button {
  background: #fff;
  border: none;
  font-size: 28px;
  width: 70px;
  position: absolute;
  top: 5px;
  margin: 0 580px;
}
.content {
  position: relative;
}
.building {
  display: flex;
  align-items: center;
  /* margin: 0 40px; */
  height: 100px;
  border-radius: 20px;
  width: 90%;
  background: #fff;
  margin: 70px 40px;
  /* background: gray; */
}
.building p {
  width: 175px;
  font-size: 28px;
  height: 50px;
  /* background: red; */
  margin: 50px 100px;
  color: grey;
}
.building input {
  height: 50px;
  text-align: center;
  width: 200px;
  border-radius: 20px;
  background-color: gainsboro;

  /* border: 2px solid grey; */
  margin-right: 90px;
  font-size: 24.5px;
}
.monkey {
  display: flex;
  width: 90%;
  height: 90px;
  line-height: 90px;
  background: #fff;
  margin: 0 40px;
  border-radius: 20px;
}
.monkey p {
  margin: 10px 110px;
  color: grey;
}
.monkey span {
  display: block;
  width: 150px;
  height: 60px;

  text-align: center;
  line-height: 60px;
  border-radius: 20px;
  background: #ffcf35;
  margin: 30px 10px;
}
.monkey .last {
  display: block;
  width: 150px;
  color: black;
  height: 60px;
  line-height: 60px;

  background: #cccccc;
}
.footer {
  background: #faf8f6;
}
.school {
  display: flex;
  flex-direction: column;
  /* justify-content: space-around; */
  width: 90%;
  height: 100px;
  line-height: 100px;
  background: #fff;
  border-radius: 20px;
  margin: 50px 40px;
}
.school p {
  margin: 0 105px;
  width: 200px;
  height: 0px;
  color: grey;
}
.school span {
  margin: 0 640px;
  font-size: 40px;
}
</style>
